<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = $show_header = 1;
include $this->admin_tpl('header_v2.0', 'admin');
?>


<div id="content"> 
    <div class="row">
        <article id="widget-grid" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
             <div class="jarviswidget jarviswidget-color-darken" id="vip_member_<?php echo $_GET['menuid']?>" data-widget-editbutton="false"data-widget-togglebutton="false"  data-widget-deletebutton="false" data-widget-fullscreenbutton="false">
                <header>
                      <span class="widget-icon"> <i class="fa fa-table txt-color-white"></i> </span>
                     <h2>VIP用户管理</h2>
                </header>
                <div>
                    <div class="widget-body no-padding">
                        <div class="widget-body-toolbar">
                            <form name="searchform" action="" method="get" >
                                <input type="hidden" value="shuafen" name="m"/>
                                <input type="hidden" value="exact_find" name="c"/>
                                <input type="hidden" value="vip_member" name="a"/>
                                <div class="row mb10">
                                    <div class="col-sm-2 ">
                                        手机号：<input name="username" type="text" value="<?php echo $tel; ?>" class="input-text form-control" />
                                    </div>
                                    <div class="col-sm-2 ">
                                        &nbsp;<br>
                                        <button type="submit" name="search"  class="btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <form name="myform" id="myform" action="?m=shuafen&c=space&a=delete" method="post" class="form-horizontal">
                            <div class ="table-content">
                                <table width="100%" cellspacing="0" class="table  pinned table-bordered  table-striped table-condensed ">
                                    <thead>
                                        <tr>
								            <th>序号</th>
								            <th>用户名(手机)</th>
								            <th>昵称</th>
											<th>性别</th>
											<th>成为VIP时间</th>
											<th>是否置顶</th>
											<th width="100"><?php echo L('operations_manage')?></th>
                                        </tr>
                                    </thead>
                                </table>
                                <table width="100%" cellspacing="0" class="table table-bordered  table-striped table-condensed table-hover">
                                    <thead>
                                        <tr>
								            <th>序号</th>
								            <th>用户名(手机)</th>
								            <th>昵称</th>
											<th>性别</th>
											<th>成为VIP时间</th>
											<th>是否置顶</th>
											<th width="100"><?php echo L('operations_manage')?></th>
										</tr>
                                    </thead>
                                    <tbody>
                                        <?php 
                                            if(is_array($infos)){
                                                foreach($infos as  $k=>$info){
                                        ?>
                                    <tr>
										<td><?php echo $k+1?></td>
										<td><?php echo $info['username']?></td>
										<td><?php echo $info['nickname']?></td>
										<td><?php echo $sex[$info['sex']]?></td>
										<td><?php echo $info['vip_time']?date('Y-m-d',$info['vip_time']):''?></td>
										<td><?php echo $top[$info['vip_top']]  ?></td>
                                        <td>
                                          <div class="btn-group">
												<?php if($info['vip_top'] == 0){ ?>
													<a href="javascript:void(0);" class="btn bg-color-blueDark txt-color-white mode-alert" data-title="置顶" data-msg="确认置顶" data-href="?m=shuafen&c=exact_find&a=top_vip_member&userid=<?php echo $info['userid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>"><i class="fa fa-info"></i> 置顶</a>
												<?php }else{ ?>
													<a href="javascript:void(0);" class="btn bg-color-blueDark txt-color-white mode-alert" data-title="取消置顶" data-msg="确认取消置顶" data-href="?m=shuafen&c=exact_find&a=top_vip_member&action=cancel_top&userid=<?php echo $info['userid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>"><i class="fa fa-trash-o"></i> 取消置顶</a>
												<?php } ?>
                                          </div>
                                        </td>
                                    </tr>  
                                        <?php
                                        }
                                    }
                                    ?>
                                    </tbody>
                                </table>

                               <div class="widget-footer">
                                 <div id="pages"><?php echo $pages;?></div>

                                </div>
                            </div>
                        </form>
                    </div>
				</div>
             </div>
        </article>
    </div>
</div>
</body>
</html>